\hypertarget{a00086}{}\section{E\+:/knet-\/git/knet/knet/loop\+\_\+profile.h 文件参考}
\label{a00086}\index{E\+:/knet-\/git/knet/knet/loop\+\_\+profile.\+h@{E\+:/knet-\/git/knet/knet/loop\+\_\+profile.\+h}}
{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}loop\+\_\+profile\+\_\+api.\+h\char`\"{}}\\*
\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00056_ab75a5c23099a6118c469ed160b277f28_ab75a5c23099a6118c469ed160b277f28}{kloop\+\_\+profile\+\_\+t} $\ast$ \hyperlink{a00086_a2ceadcfacc62456cf26ac88ebe09fd50_a2ceadcfacc62456cf26ac88ebe09fd50}{knet\+\_\+loop\+\_\+profile\+\_\+create} (\hyperlink{a00056_a97fc76209a58362019f1ded9169e397f_a97fc76209a58362019f1ded9169e397f}{kloop\+\_\+t} $\ast$loop)
\begin{DoxyCompactList}\small\item\em 建立kloop\+\_\+t统计器 \end{DoxyCompactList}\item 
void \hyperlink{a00086_a760cc20cb3dc6a361e6b5f67576f2bbc_a760cc20cb3dc6a361e6b5f67576f2bbc}{knet\+\_\+loop\+\_\+profile\+\_\+destroy} (\hyperlink{a00056_ab75a5c23099a6118c469ed160b277f28_ab75a5c23099a6118c469ed160b277f28}{kloop\+\_\+profile\+\_\+t} $\ast$profile)
\begin{DoxyCompactList}\small\item\em 销毁统计器 \end{DoxyCompactList}\item 
uint32\+\_\+t \hyperlink{a00086_ab75ba9cdc68d1b4ec059974df4b67165_ab75ba9cdc68d1b4ec059974df4b67165}{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+established\+\_\+channel\+\_\+count} (\hyperlink{a00056_ab75a5c23099a6118c469ed160b277f28_ab75a5c23099a6118c469ed160b277f28}{kloop\+\_\+profile\+\_\+t} $\ast$profile)
\begin{DoxyCompactList}\small\item\em 增加已建立连接的管道数量 \end{DoxyCompactList}\item 
uint32\+\_\+t \hyperlink{a00086_ae34c1df8f99b26184f7380c90cc1e799_ae34c1df8f99b26184f7380c90cc1e799}{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+established\+\_\+channel\+\_\+count} (\hyperlink{a00056_ab75a5c23099a6118c469ed160b277f28_ab75a5c23099a6118c469ed160b277f28}{kloop\+\_\+profile\+\_\+t} $\ast$profile)
\begin{DoxyCompactList}\small\item\em 减少已建立连接的管道数量 \end{DoxyCompactList}\item 
uint32\+\_\+t \hyperlink{a00086_abb04cdf84772d003486afde6ee2f5234_abb04cdf84772d003486afde6ee2f5234}{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+active\+\_\+channel\+\_\+count} (\hyperlink{a00056_ab75a5c23099a6118c469ed160b277f28_ab75a5c23099a6118c469ed160b277f28}{kloop\+\_\+profile\+\_\+t} $\ast$profile)
\begin{DoxyCompactList}\small\item\em 增加已建立但未连接的管道数量 \end{DoxyCompactList}\item 
uint32\+\_\+t \hyperlink{a00086_a2846784b57c724b18c09aa177c1d1905_a2846784b57c724b18c09aa177c1d1905}{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+active\+\_\+channel\+\_\+count} (\hyperlink{a00056_ab75a5c23099a6118c469ed160b277f28_ab75a5c23099a6118c469ed160b277f28}{kloop\+\_\+profile\+\_\+t} $\ast$profile)
\begin{DoxyCompactList}\small\item\em 减少已建立但未连接的管道数量 \end{DoxyCompactList}\item 
uint32\+\_\+t \hyperlink{a00086_a85fbddaf0bf20c228f7389ad2765ec57_a85fbddaf0bf20c228f7389ad2765ec57}{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+close\+\_\+channel\+\_\+count} (\hyperlink{a00056_ab75a5c23099a6118c469ed160b277f28_ab75a5c23099a6118c469ed160b277f28}{kloop\+\_\+profile\+\_\+t} $\ast$profile)
\begin{DoxyCompactList}\small\item\em 增加已关闭管道数量 \end{DoxyCompactList}\item 
uint32\+\_\+t \hyperlink{a00086_a1c0e93ef936d34b9ed9eb0b8a949a888_a1c0e93ef936d34b9ed9eb0b8a949a888}{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+close\+\_\+channel\+\_\+count} (\hyperlink{a00056_ab75a5c23099a6118c469ed160b277f28_ab75a5c23099a6118c469ed160b277f28}{kloop\+\_\+profile\+\_\+t} $\ast$profile)
\begin{DoxyCompactList}\small\item\em 减少已关闭管道数量 \end{DoxyCompactList}\item 
uint64\+\_\+t \hyperlink{a00086_abd775461437b9c394cf7b800953ea6d0_abd775461437b9c394cf7b800953ea6d0}{knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+send\+\_\+bytes} (\hyperlink{a00056_ab75a5c23099a6118c469ed160b277f28_ab75a5c23099a6118c469ed160b277f28}{kloop\+\_\+profile\+\_\+t} $\ast$profile, uint64\+\_\+t send\+\_\+bytes)
\begin{DoxyCompactList}\small\item\em 增加发送字节数 \end{DoxyCompactList}\item 
uint64\+\_\+t \hyperlink{a00086_a1d019265b963ca1a53492060b456d620_a1d019265b963ca1a53492060b456d620}{knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+recv\+\_\+bytes} (\hyperlink{a00056_ab75a5c23099a6118c469ed160b277f28_ab75a5c23099a6118c469ed160b277f28}{kloop\+\_\+profile\+\_\+t} $\ast$profile, uint64\+\_\+t recv\+\_\+bytes)
\begin{DoxyCompactList}\small\item\em 增加接收字节数 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{函数说明}
\hypertarget{a00086_a1d019265b963ca1a53492060b456d620_a1d019265b963ca1a53492060b456d620}{}\index{loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}!knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+recv\+\_\+bytes@{knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+recv\+\_\+bytes}}
\index{knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+recv\+\_\+bytes@{knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+recv\+\_\+bytes}!loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}}
\subsubsection[{knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+recv\+\_\+bytes}]{\setlength{\rightskip}{0pt plus 5cm}uint64\+\_\+t knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+recv\+\_\+bytes (
\begin{DoxyParamCaption}
\item[{{\bf kloop\+\_\+profile\+\_\+t} $\ast$}]{profile, }
\item[{uint64\+\_\+t}]{recv\+\_\+bytes}
\end{DoxyParamCaption}
)}\label{a00086_a1d019265b963ca1a53492060b456d620_a1d019265b963ca1a53492060b456d620}


增加接收字节数 


\begin{DoxyParams}{参数}
{\em profile} & kloop\+\_\+profile\+\_\+t实例 \\
\hline
{\em recv\+\_\+bytes} & 已接收的字节数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
接收字节数 
\end{DoxyReturn}
\hypertarget{a00086_abd775461437b9c394cf7b800953ea6d0_abd775461437b9c394cf7b800953ea6d0}{}\index{loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}!knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+send\+\_\+bytes@{knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+send\+\_\+bytes}}
\index{knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+send\+\_\+bytes@{knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+send\+\_\+bytes}!loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}}
\subsubsection[{knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+send\+\_\+bytes}]{\setlength{\rightskip}{0pt plus 5cm}uint64\+\_\+t knet\+\_\+loop\+\_\+profile\+\_\+add\+\_\+send\+\_\+bytes (
\begin{DoxyParamCaption}
\item[{{\bf kloop\+\_\+profile\+\_\+t} $\ast$}]{profile, }
\item[{uint64\+\_\+t}]{send\+\_\+bytes}
\end{DoxyParamCaption}
)}\label{a00086_abd775461437b9c394cf7b800953ea6d0_abd775461437b9c394cf7b800953ea6d0}


增加发送字节数 


\begin{DoxyParams}{参数}
{\em profile} & kloop\+\_\+profile\+\_\+t实例 \\
\hline
{\em send\+\_\+bytes} & 已发送的字节数 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
发送字节数 
\end{DoxyReturn}
\hypertarget{a00086_a2ceadcfacc62456cf26ac88ebe09fd50_a2ceadcfacc62456cf26ac88ebe09fd50}{}\index{loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}!knet\+\_\+loop\+\_\+profile\+\_\+create@{knet\+\_\+loop\+\_\+profile\+\_\+create}}
\index{knet\+\_\+loop\+\_\+profile\+\_\+create@{knet\+\_\+loop\+\_\+profile\+\_\+create}!loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}}
\subsubsection[{knet\+\_\+loop\+\_\+profile\+\_\+create}]{\setlength{\rightskip}{0pt plus 5cm}{\bf kloop\+\_\+profile\+\_\+t}$\ast$ knet\+\_\+loop\+\_\+profile\+\_\+create (
\begin{DoxyParamCaption}
\item[{{\bf kloop\+\_\+t} $\ast$}]{loop}
\end{DoxyParamCaption}
)}\label{a00086_a2ceadcfacc62456cf26ac88ebe09fd50_a2ceadcfacc62456cf26ac88ebe09fd50}


建立kloop\+\_\+t统计器 


\begin{DoxyParams}{参数}
{\em loop} & kloop\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
kloop\+\_\+profile\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00086_a2846784b57c724b18c09aa177c1d1905_a2846784b57c724b18c09aa177c1d1905}{}\index{loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}!knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+active\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+active\+\_\+channel\+\_\+count}}
\index{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+active\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+active\+\_\+channel\+\_\+count}!loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}}
\subsubsection[{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+active\+\_\+channel\+\_\+count}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+active\+\_\+channel\+\_\+count (
\begin{DoxyParamCaption}
\item[{{\bf kloop\+\_\+profile\+\_\+t} $\ast$}]{profile}
\end{DoxyParamCaption}
)}\label{a00086_a2846784b57c724b18c09aa177c1d1905_a2846784b57c724b18c09aa177c1d1905}


减少已建立但未连接的管道数量 


\begin{DoxyParams}{参数}
{\em profile} & kloop\+\_\+profile\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
已建立但未连接的管道数量 
\end{DoxyReturn}
\hypertarget{a00086_a1c0e93ef936d34b9ed9eb0b8a949a888_a1c0e93ef936d34b9ed9eb0b8a949a888}{}\index{loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}!knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+close\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+close\+\_\+channel\+\_\+count}}
\index{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+close\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+close\+\_\+channel\+\_\+count}!loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}}
\subsubsection[{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+close\+\_\+channel\+\_\+count}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+close\+\_\+channel\+\_\+count (
\begin{DoxyParamCaption}
\item[{{\bf kloop\+\_\+profile\+\_\+t} $\ast$}]{profile}
\end{DoxyParamCaption}
)}\label{a00086_a1c0e93ef936d34b9ed9eb0b8a949a888_a1c0e93ef936d34b9ed9eb0b8a949a888}


减少已关闭管道数量 


\begin{DoxyParams}{参数}
{\em profile} & kloop\+\_\+profile\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
已关闭管道数量 
\end{DoxyReturn}
\hypertarget{a00086_ae34c1df8f99b26184f7380c90cc1e799_ae34c1df8f99b26184f7380c90cc1e799}{}\index{loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}!knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+established\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+established\+\_\+channel\+\_\+count}}
\index{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+established\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+established\+\_\+channel\+\_\+count}!loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}}
\subsubsection[{knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+established\+\_\+channel\+\_\+count}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t knet\+\_\+loop\+\_\+profile\+\_\+decrease\+\_\+established\+\_\+channel\+\_\+count (
\begin{DoxyParamCaption}
\item[{{\bf kloop\+\_\+profile\+\_\+t} $\ast$}]{profile}
\end{DoxyParamCaption}
)}\label{a00086_ae34c1df8f99b26184f7380c90cc1e799_ae34c1df8f99b26184f7380c90cc1e799}


减少已建立连接的管道数量 


\begin{DoxyParams}{参数}
{\em profile} & kloop\+\_\+profile\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
已建立连接的管道数量 
\end{DoxyReturn}
\hypertarget{a00086_a760cc20cb3dc6a361e6b5f67576f2bbc_a760cc20cb3dc6a361e6b5f67576f2bbc}{}\index{loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}!knet\+\_\+loop\+\_\+profile\+\_\+destroy@{knet\+\_\+loop\+\_\+profile\+\_\+destroy}}
\index{knet\+\_\+loop\+\_\+profile\+\_\+destroy@{knet\+\_\+loop\+\_\+profile\+\_\+destroy}!loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}}
\subsubsection[{knet\+\_\+loop\+\_\+profile\+\_\+destroy}]{\setlength{\rightskip}{0pt plus 5cm}void knet\+\_\+loop\+\_\+profile\+\_\+destroy (
\begin{DoxyParamCaption}
\item[{{\bf kloop\+\_\+profile\+\_\+t} $\ast$}]{profile}
\end{DoxyParamCaption}
)}\label{a00086_a760cc20cb3dc6a361e6b5f67576f2bbc_a760cc20cb3dc6a361e6b5f67576f2bbc}


销毁统计器 


\begin{DoxyParams}{参数}
{\em profile} & kloop\+\_\+profile\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00086_abb04cdf84772d003486afde6ee2f5234_abb04cdf84772d003486afde6ee2f5234}{}\index{loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}!knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+active\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+active\+\_\+channel\+\_\+count}}
\index{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+active\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+active\+\_\+channel\+\_\+count}!loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}}
\subsubsection[{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+active\+\_\+channel\+\_\+count}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+active\+\_\+channel\+\_\+count (
\begin{DoxyParamCaption}
\item[{{\bf kloop\+\_\+profile\+\_\+t} $\ast$}]{profile}
\end{DoxyParamCaption}
)}\label{a00086_abb04cdf84772d003486afde6ee2f5234_abb04cdf84772d003486afde6ee2f5234}


增加已建立但未连接的管道数量 


\begin{DoxyParams}{参数}
{\em profile} & kloop\+\_\+profile\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
已建立但未连接的管道数量 
\end{DoxyReturn}
\hypertarget{a00086_a85fbddaf0bf20c228f7389ad2765ec57_a85fbddaf0bf20c228f7389ad2765ec57}{}\index{loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}!knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+close\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+close\+\_\+channel\+\_\+count}}
\index{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+close\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+close\+\_\+channel\+\_\+count}!loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}}
\subsubsection[{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+close\+\_\+channel\+\_\+count}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+close\+\_\+channel\+\_\+count (
\begin{DoxyParamCaption}
\item[{{\bf kloop\+\_\+profile\+\_\+t} $\ast$}]{profile}
\end{DoxyParamCaption}
)}\label{a00086_a85fbddaf0bf20c228f7389ad2765ec57_a85fbddaf0bf20c228f7389ad2765ec57}


增加已关闭管道数量 


\begin{DoxyParams}{参数}
{\em profile} & kloop\+\_\+profile\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
已关闭管道数量 
\end{DoxyReturn}
\hypertarget{a00086_ab75ba9cdc68d1b4ec059974df4b67165_ab75ba9cdc68d1b4ec059974df4b67165}{}\index{loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}!knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+established\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+established\+\_\+channel\+\_\+count}}
\index{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+established\+\_\+channel\+\_\+count@{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+established\+\_\+channel\+\_\+count}!loop\+\_\+profile.\+h@{loop\+\_\+profile.\+h}}
\subsubsection[{knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+established\+\_\+channel\+\_\+count}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t knet\+\_\+loop\+\_\+profile\+\_\+increase\+\_\+established\+\_\+channel\+\_\+count (
\begin{DoxyParamCaption}
\item[{{\bf kloop\+\_\+profile\+\_\+t} $\ast$}]{profile}
\end{DoxyParamCaption}
)}\label{a00086_ab75ba9cdc68d1b4ec059974df4b67165_ab75ba9cdc68d1b4ec059974df4b67165}


增加已建立连接的管道数量 


\begin{DoxyParams}{参数}
{\em profile} & kloop\+\_\+profile\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
已建立连接的管道数量 
\end{DoxyReturn}
